// import {
//   GET,
//   POST,
//   DELETE,
//   PATCH,
//   PUT
// } from '@/utils/request.js'
import { ALL } from './baseUrl'
import request from '@/utils/request'
// 用户操作记录
// export const GetSearchOperationLog = params => GET('/all/api/services/app/UserLogOperationService/SearchOperationLog' params).then(res => res.data)
export function GetSearchOperationLog(params) {
  return request({
    url: '/all/api/services/app/UserLogOperationService/SearchOperationLog',
    method: 'get',
    params: params
  })
}

// 获取料场字典列表
// export const GetDictionaryLC = params => GET('/all/api/services/app/BarSectionService/GetDictionary' params).then(res => res.data)
export function GetDictionaryLC(params) {
  return request({
    url: '/all/api/services/app/BarSectionService/GetDictionary',
    method: 'get',
    params: params
  })
}

// 获取煤种字典列表
// export const GetDictionaryMZ = params => GET('/all/api/services/app/StorageCoalInfoService/GetDictionary' params).then(res => res.data)
export function GetDictionaryMZ(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetDictionary',
    method: 'get',
    params: params
  })
}

// 获取矿点字典列表
// export const GetDictionaryKD = params => GET('/all/api/services/app/SupplierService/GetMinetList' params).then(res => res.data)
export function GetDictionaryKD(params) {
  return request({
    url: '/all/api/services/app/SupplierService/GetMinetList',
    method: 'get',
    params: params
  })
}

// 统计展示煤量【进消存】
// export const GetStaticDynamicList = params => POST('/all/api/services/app/StorageCoalInfoService/GetStaticDynamicList' params).then(res => res.data)
export function GetStaticDynamicList(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetStaticDynamicList',
    method: 'post',
    params: params
  })
}

// 获取当前存煤信息
// export const GetStatisticsOfCurrentInventoryInformationList = params => GET('/all/api/services/app/StorageCoalInfoService/GetStatisticsOfCurrentInventoryInformationList' params).then(res => res.data)
export function GetStatisticsOfCurrentInventoryInformationList(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetStatisticsOfCurrentInventoryInformationList',
    method: 'get',
    params: params
  })
}

//通过煤厂编号获取当前煤厂下各个煤种分布情况
// export const GetDistributionRatio = params => POST('/all/api/services/app/StorageCoalInfoService/GetDistributionRatio' params).then(res => res.data)
export function GetDistributionRatio(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetDistributionRatio',
    method: 'post',
    params: params
  })
}

// 获取来煤炭记录统计信息
// export const GetInByTrainList = params => POST('/all/api/services/app/StorageCoalInfoService/GetInByTrainList' params).then(res => res.data)
export function GetInByTrainList(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetInByTrainList',
    method: 'post',
    params: params
  })
}
/**
 * 批次统计
 * @param {*} params 
 * @returns 
 */
// 获取煤批次统计信息
// export const GetList = params => GET('/all/api/services/app/StorageCoalInfoService/GetList' params).then(res => res.data)
export function GetList(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetList',
    method: 'get',
    params: params
  })
}
// 获取统计详情通过来媒批次号
// export const GetDetailInfoById = params => GET('/all/api/services/app/StorageCoalInfoService/GetDetailInfoById' params).then(res => res.data)
export function GetDetailInfoById(params) {
  return request({
    url: '/all/api/services/app/StorageCoalInfoService/GetDetailInfoById',
    method: 'get',
    params: params
  })
}
/**
 * 基础信息
 */

// 获取堆料机列表信息
// export const GetDoulun = params => GET('/all/api/services/app/BarWheelMachineService/GetAll' params).then(res => res.data)
export function GetDoulun(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加堆料机
// export const AddDoulun = params => POST('/all/api/services/app/BarWheelMachineService/Create' params).then(res => res.data)
export function AddDoulun(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/Create',
    method: 'post',
    params: params
  })
}
//修改堆料机
// export const UpdateDoulun = params => PUT('/all/api/services/app/BarWheelMachineService/Update' params).then(res => res.data)
export function UpdateDoulun(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/Update',
    method: 'put',
    params: params
  })
}
//删除堆料机
// export const DeleteDoulun = params => DELETE('/all/api/services/app/BarWheelMachineService/Delete' params).then(res => res.data)
export function DeleteDoulun(params) {
  return request({
    url: '/all/api/services/app/BarWheelMachineService/Delete',
    method: 'delete',
    params: params
  })
}
// 增加分区
// export const Addpartition = params => PUT('/all/api/services/app/BarPartitionService/Add' params).then(res => res.data)
export function Addpartition(params) {
  return request({
    url: '/all/api/services/app/BarPartitionService/Add',
    method: 'put',
    params: params
  })
}
// 更新一个分区
// export const Updatepartition = params => PATCH('/all/api/services/app/BarPartitionService/Update' params).then(res => res.data)
export function Updatepartition(params) {
  return request({
    url: '/all/api/services/app/BarPartitionService/Update',
    method: 'patch',
    params: params
  })
}
// 删除一个分区
// export const Deletepartition = params => DELETE('/all/api/services/app/BarPartitionService/DeleteByCode' params).then(res => res.data)
export function Deletepartition(params) {
  return request({
    url: '/all/api/services/app/BarPartitionService/DeleteByCode',
    method: 'delete',
    params: params
  })
}

//添加煤种
// export const AddCoalType = params => PUT('/all/api/services/app/CoalTypeService/Add' params).then(res => res.data)
export function AddCoalType(params) {
  return request({
    url: '/all/api/services/app/CoalTypeService/Add',
    method: 'put',
    params: params
  })
}
//修改煤种
// export const UpdateCoalType = params => PATCH('/all/api/services/app/CoalTypeService/Update' params).then(res => res.data)
export function UpdateCoalType(params) {
  return request({
    url: '/all/api/services/app/CoalTypeService/Update',
    method: 'patch',
    params: params
  })
}
//删除煤种
// export const DeleteCoalType = params => DELETE('/all/api/services/app/CoalTypeService/DeleteByCode' params).then(res => res.data)
export function DeleteCoalType(params) {
  return request({
    url: '/all/api/services/app/CoalTypeService/DeleteByCode',
    method: 'delete',
    params: params
  })
}

//添加煤场
// export const AddBarSection = params => PUT('/all/api/services/app/BarSectionService/Add' params).then(res => res.data)
export function AddBarSection(params) {
  return request({
    url: '/all/api/services/app/BarSectionService/Add',
    method: 'put',
    params: params
  })
}
//修改煤场
// export const UpdateBarSection = params => PATCH('/all/api/services/app/BarSectionService/Update' params).then(res => res.data)
export function UpdateBarSection(params) {
  return request({
    url: '/all/api/services/app/BarSectionService/Update',
    method: 'patch',
    params: params
  })
}
//删除煤场
// export const DeleteBarSection = params => DELETE('/all/api/services/app/BarSectionService/DeleteByCode' params).then(res => res.data)
export function DeleteBarSection(params) {
  return request({
    url: '/all/api/services/app/BarSectionService/DeleteByCode',
    method: 'delete',
    params: params
  })
}

// 添加煤棚
// export const AddBarYard = params => PUT('/all/api/services/app/BarYardService/Add' params).then(res => res.data)
export function AddBarYard(params) {
  return request({
    url: '/all/api/services/app/BarYardService/Add',
    method: 'put',
    params: params
  })
}
//修改煤棚
// export const UpdateBarYard = params => PATCH('/all/api/services/app/BarYardService/Update' params).then(res => res.data)
export function UpdateBarYard(params) {
  return request({
    url: '/all/api/services/app/BarYardService/Update',
    method: 'patch',
    params: params
  })
}
//删除煤棚
// export const DeleteBarYard = params => DELETE('/all/api/services/app/BarYardService/DeleteByCode' params).then(res => res.data)
export function DeleteBarYard(params) {
  return request({
    url: '/all/api/services/app/BarYardService/DeleteByCode',
    method: 'delete',
    params: params
  })
}

// 添加矿点
// export const AddCoalSpot = params => PUT('/all/api/services/app/CoalSpotService/Add' params).then(res => res.data)
export function AddCoalSpot(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/Add',
    method: 'put',
    params: params
  })
}
//修改矿点
// export const UpdateCoalSpot = params => PATCH('/all/api/services/app/CoalSpotService/Update' params).then(res => res.data)
export function UpdateCoalSpot(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/Update',
    method: 'patch',
    params: params
  })
}
//删除矿点

// export const getMTList = params => DELETE('/all/api/services/app/CoalSpotService/Delete' params).then(res => res.data)
export function getMTList(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/Delete',
    method: 'delete',
    params: params
  })
}
// export const updateBatcNo = params => DELETE('/all/api/services/app/CoalSpotService/Delete' params).then(res => res.data)
export function updateBatcNo(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/Delete',
    method: 'delete',
    params: params
  })
}
// export const getMTById = params => DELETE('/all/api/services/app/CoalSpotService/Delete' params).then(res => res.data)
export function getMTById(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/Delete',
    method: 'delete',
    params: params
  })
}
// export const getGBarSectionInfoById = params => DELETE('/all/api/services/app/CoalSpotService/Delete' params).then(res => res.data)
export function getGBarSectionInfoById(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/Delete',
    method: 'delete',
    params: params
  })
}
// export const DeleteCoalSpot = params => DELETE('/all/api/services/app/CoalSpotService/DeleteByCode' params).then(res => res.data)
export function DeleteCoalSpot(params) {
  return request({
    url: '/all/api/services/app/CoalSpotService/DeleteByCode',
    method: 'delete',
    params: params
  })
}

// 获取港口
// export const GetHarbor = params => GET('/all/api/services/app/HarborService/GetAll' params).then(res => res.data)
export function GetHarbor(params) {
  return request({
    url: '/all/api/services/app/HarborService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加港口
// export const addHarbor = params => POST('/all/api/services/app/HarborService/Create' params).then(res => res.data)
export function addHarbor(params) {
  return request({
    url: '/all/api/services/app/HarborService/Create',
    method: 'post',
    params: params
  })
}
// 编辑港口
// export const editHarbor = params => PUT('/all/api/services/app/HarborService/Update' params).then(res => res.data)
export function editHarbor(params) {
  return request({
    url: '/all/api/services/app/HarborService/Update',
    method: 'put',
    params: params
  })
}
// 删除港口
// export const delHarbor = params => DELETE('/all/api/services/app/HarborService/Delete' params).then(res => res.data)
export function delHarbor(params) {
  return request({
    url: '/all/api/services/app/HarborService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取公司
// export const GetCompany = params => GET('/all/api/services/app/CompanyService/GetAll' params).then(res => res.data)
export function GetCompany(params) {
  return request({
    url: '/all/api/services/app/CompanyService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加公司
// export const addCompany = params => POST('/all/api/services/app/CompanyService/Create' params).then(res => res.data)
export function addCompany(params) {
  return request({
    url: '/all/api/services/app/CompanyService/Create',
    method: 'post',
    params: params
  })
}
// 编辑公司
// export const editCompany = params => PUT('/all/api/services/app/CompanyService/Update' params).then(res => res.data)
export function editCompany(params) {
  return request({
    url: '/all/api/services/app/CompanyService/Update',
    method: 'put',
    params: params
  })
}
// 删除公司
// export const delCompany = params => DELETE('/all/api/services/app/CompanyService/Delete' params).then(res => res.data)
export function delCompany(params) {
  return request({
    url: '/all/api/services/app/CompanyService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取巡检仪
// export const GetPatrolInstrument = params => GET('/all/api/services/app/PatrolInstrumentService/GetAll' params).then(res => res.data)
export function GetPatrolInstrument(params) {
  return request({
    url: '/all/api/services/app/PatrolInstrumentService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加巡检仪
// export const addPatrolInstrument = params => POST('/all/api/services/app/PatrolInstrumentService/Create' params).then(res => res.data)
export function addPatrolInstrument(params) {
  return request({
    url: '/all/api/services/app/PatrolInstrumentService/Create',
    method: 'post',
    params: params
  })
}
// 编辑巡检仪
// export const editPatrolInstrument = params => PUT('/all/api/services/app/PatrolInstrumentService/Update' params).then(res => res.data)
export function editPatrolInstrument(params) {
  return request({
    url: '/all/api/services/app/PatrolInstrumentService/Update',
    method: 'put',
    params: params
  })
}
// 删除巡检仪
// export const delPatrolInstrument = params => DELETE('/all/api/services/app/PatrolInstrumentService/Delete' params).then(res => res.data)
export function delPatrolInstrument(params) {
  return request({
    url: '/all/api/services/app/PatrolInstrumentService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取传感器
// export const GetSensorType = params => GET('/all/api/services/app/SensorTypeService/GetAll' params).then(res => res.data)
export function GetSensorType(params) {
  return request({
    url: '/all/api/services/app/SensorTypeService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加传感器
// export const addSensorType = params => POST('/all/api/services/app/SensorTypeService/Create' params).then(res => res.data)
export function addSensorType(params) {
  return request({
    url: '/all/api/services/app/SensorTypeService/Create',
    method: 'post',
    params: params
  })
}
// 编辑传感器
// export const editSensorType = params => PUT('/all/api/services/app/SensorTypeService/Update' params).then(res => res.data)
export function editSensorType(params) {
  return request({
    url: '/all/api/services/app/SensorTypeService/Update',
    method: 'put',
    params: params
  })
}
// 删除传感器
// export const delSensorType = params => DELETE('/all/api/services/app/SensorTypeService/Delete' params).then(res => res.data)
export function delSensorType(params) {
  return request({
    url: '/all/api/services/app/SensorTypeService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取设备类型
// export const GetDeviceType = params => GET('/all/api/services/app/DeviceTypeService/GetAll' params).then(res => res.data)
export function GetDeviceType(params?) {
  return request({
    url: '/all/api/services/app/DeviceTypeService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加设备类型
// export const addDeviceType = params => POST('/all/api/services/app/DeviceTypeService/Create' params).then(res => res.data)
export function addDeviceType(params) {
  return request({
    url: '/all/api/services/app/DeviceTypeService/Create',
    method: 'post',
    params: params
  })
}
// 编辑设备类型
// export const editDeviceType = params => PUT('/all/api/services/app/DeviceTypeService/Update' params).then(res => res.data)
export function editDeviceType(params) {
  return request({
    url: '/all/api/services/app/DeviceTypeService/Update',
    method: 'put',
    params: params
  })
}
// 删除设备类型
// export const delDeviceType = params => DELETE('/all/api/services/app/DeviceTypeService/Delete' params).then(res => res.data)
export function delDeviceType(params) {
  return request({
    url: '/all/api/services/app/DeviceTypeService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取测点
// export const GetMotorMeasure = params => GET('/all/api/services/app/MotorMeasurePointService/GetAll' params).then(res => res.data)
export function GetMotorMeasure(params) {
  return request({
    url: '/all/api/services/app/MotorMeasurePointService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加测点
// export const addMotorMeasure = params => POST('/all/api/services/app/MotorMeasurePointService/Create' params).then(res => res.data)
export function addMotorMeasure(params) {
  return request({
    url: '/all/api/services/app/MotorMeasurePointService/Create',
    method: 'post',
    params: params
  })
}
// 编辑测点
// export const editMotorMeasure = params => PUT('/all/api/services/app/MotorMeasurePointService/Update' params).then(res => res.data)
export function editMotorMeasure(params) {
  return request({
    url: '/all/api/services/app/MotorMeasurePointService/Update',
    method: 'put',
    params: params
  })
}
// 删除测点
// export const deleteMotorMeasure = params => DELETE('/all/api/services/app/MotorMeasurePointService/Delete' params).then(res => res.data)
export function deleteMotorMeasure(params) {
  return request({
    url: '/all/api/services/app/MotorMeasurePointService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取门机
// export const GetDoorMachine = params => GET('/all/api/services/app/DoorMachineService/GetAll' params).then(res => res.data)
export function GetDoorMachine(params) {
  return request({
    url: '/all/api/services/app/DoorMachineService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加门机
// export const addDoorMachine = params => POST('/all/api/services/app/DoorMachineService/Create' params).then(res => res.data)
export function addDoorMachine(params) {
  return request({
    url: '/all/api/services/app/DoorMachineService/Create',
    method: 'post',
    params: params
  })
}
// 编辑门机
// export const editDoorMachine = params => PUT('/all/api/services/app/DoorMachineService/Update' params).then(res => res.data)
export function editDoorMachine(params) {
  return request({
    url: '/all/api/services/app/DoorMachineService/Update',
    method: 'put',
    params: params
  })
}
// 删除门机
// export const delDoorMachine = params => DELETE('/all/api/services/app/DoorMachineService/Delete' params).then(res => res.data)
export function delDoorMachine(params) {
  return request({
    url: '/all/api/services/app/DoorMachineService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取门机机构
// export const GetChanism = params => GET('/all/api/services/app/DoorMachineChanismService/GetAll' params).then(res => res.data)
export function GetChanism(params) {
  return request({
    url: '/all/api/services/app/DoorMachineChanismService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加门机机构
// export const addChanism = params => POST('/all/api/services/app/DoorMachineChanismService/Create' params).then(res => res.data)
export function addChanism(params) {
  return request({
    url: '/all/api/services/app/DoorMachineChanismService/Create',
    method: 'post',
    params: params
  })
}
// 编辑门机机构
// export const editChanism = params => PUT('/all/api/services/app/DoorMachineChanismService/Update' params).then(res => res.data)
export function editChanism(params) {
  return request({
    url: '/all/api/services/app/DoorMachineChanismService/Update',
    method: 'put',
    params: params
  })
}
// 删除门机机构
// export const delChanism = params => DELETE('/all/api/services/app/DoorMachineChanismService/Delete' params).then(res => res.data)
export function delChanism(params) {
  return request({
    url: '/all/api/services/app/DoorMachineChanismService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取门机三轴
// export const GetThreeAxis = params => GET('/all/api/services/app/DoorMachineThreeAxisService/GetAll' params).then(res => res.data)
export function GetThreeAxis(params) {
  return request({
    url: '/all/api/services/app/DoorMachineThreeAxisService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加门机三轴
// export const addThreeAxis = params => POST('/all/api/services/app/DoorMachineThreeAxisService/Create' params).then(res => res.data)
export function addThreeAxis(params) {
  return request({
    url: '/all/api/services/app/DoorMachineThreeAxisService/Create',
    method: 'post',
    params: params
  })
}
// 编辑门机三轴
// export const editThreeAxis = params => PUT('/all/api/services/app/DoorMachineThreeAxisService/Update' params).then(res => res.data)
export function editThreeAxis(params) {
  return request({
    url: '/all/api/services/app/DoorMachineThreeAxisService/Update',
    method: 'put',
    params: params
  })
}
// 删除门机三轴
// export const delThreeAxis = params => DELETE('/all/api/services/app/DoorMachineThreeAxisService/Delete' params).then(res => res.data)
export function delThreeAxis(params) {
  return request({
    url: '/all/api/services/app/DoorMachineThreeAxisService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取门机倾角仪
// export const GetInclinometer = params => GET('/all/api/services/app/DoorMachineInclinometerService/GetAll' params).then(res => res.data)
export function GetInclinometer(params) {
  return request({
    url: '/all/api/services/app/DoorMachineInclinometerService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加门机倾角仪
// export const addInclinometer = params => POST('/all/api/services/app/DoorMachineInclinometerService/Create' params).then(res => res.data)
export function addInclinometer(params) {
  return request({
    url: '/all/api/services/app/DoorMachineInclinometerService/Create',
    method: 'post',
    params: params
  })
}
// 编辑门机倾角仪
// export const editInclinometer = params => PUT('/all/api/services/app/DoorMachineInclinometerService/Update' params).then(res => res.data)
export function editInclinometer(params) {
  return request({
    url: '/all/api/services/app/DoorMachineInclinometerService/Update',
    method: 'put',
    params: params
  })
}
// 删除门机倾角仪
// export const delInclinometer = params => DELETE('/all/api/services/app/DoorMachineInclinometerService/Delete' params).then(res => res.data)
export function delInclinometer(params) {
  return request({
    url: '/all/api/services/app/DoorMachineInclinometerService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取门机风速仪
// export const GetWindSpeed = params => GET('/all/api/services/app/DoorMachineWindSpeedService/GetAll' params).then(res => res.data)
export function GetWindSpeed(params) {
  return request({
    url: '/all/api/services/app/DoorMachineWindSpeedService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加门机风速仪
// export const addWindSpeed = params => POST('/all/api/services/app/DoorMachineWindSpeedService/Create' params).then(res => res.data)
export function addWindSpeed(params) {
  return request({
    url: '/all/api/services/app/DoorMachineWindSpeedService/Create',
    method: 'post',
    params: params
  })
}
// 编辑门机风速仪
// export const editWindSpeed = params => PUT('/all/api/services/app/DoorMachineWindSpeedService/Update' params).then(res => res.data)
export function editWindSpeed(params) {
  return request({
    url: '/all/api/services/app/DoorMachineWindSpeedService/Update',
    method: 'put',
    params: params
  })
}
// 删除门机风速仪
// export const delWindSpeed = params => DELETE('/all/api/services/app/DoorMachineWindSpeedService/Delete' params).then(res => res.data)
export function delWindSpeed(params) {
  return request({
    url: '/all/api/services/app/DoorMachineWindSpeedService/Delete',
    method: 'delete',
    params: params
  })
}

// 获取门机设备
// export const GetDevice = params => GET('/all/api/services/app/DoorMachineDeviceService/GetAll' params).then(res => res.data)
export function GetDevice(params) {
  return request({
    url: '/all/api/services/app/DoorMachineDeviceService/GetAll',
    method: 'get',
    params: params
  })
}
// 添加门机设备
// export const addDevice = params => POST('/all/api/services/app/DoorMachineDeviceService/Create' params).then(res => res.data)
export function addDevice(params) {
  return request({
    url: '/all/api/services/app/DoorMachineDeviceService/Create',
    method: 'post',
    params: params
  })
}
// 编辑门机设备
// export const editDevice = params => PUT('/all/api/services/app/DoorMachineDeviceService/Update' params).then(res => res.data)
export function editDevice(params) {
  return request({
    url: '/all/api/services/app/DoorMachineDeviceService/Update',
    method: 'put',
    params: params
  })
}
// 删除门机设备
// export const delDevice = params => DELETE('/all/api/services/app/DoorMachineDeviceService/Delete' params).then(res => res.data)
export function delDevice(params) {
  return request({
    url: '/all/api/services/app/DoorMachineDeviceService/Delete',
    method: 'delete',
    params: params
  })
}

// 考勤导出
// export const exportAttendance = params => GET('/all/api/services/app/AttendanceService/Export' params).then(res => res.data)
export function exportAttendance(params) {
  return request({
    url: '/all/api/services/app/AttendanceService/Export',
    method: 'get',
    params: params
  })
}
// 获取考勤
// export const GetAttendance = params => GET('/all/api/services/app/AttendanceService/GetAll' params).then(res => res.data)
export function GetAttendance(params) {
  return request({
    url: '/all/api/services/app/AttendanceService/GetAll',
    method: 'get',
    params: params
  })
}
// 上班打卡
// export const attendanceLogin = params => POST('/all/api/services/app/AttendanceService/Login' params).then(res => res.data)
export function attendanceLogin(params) {
  return request({
    url: '/all/api/services/app/AttendanceService/Login',
    method: 'post',
    params: params
  })
}
// 下班打卡
// export const attendanceLogout = params => POST('/all/api/services/app/AttendanceService/Logout' params).then(res => res.data)
export function attendanceLogout(params) {
  return request({
    url: '/all/api/services/app/AttendanceService/Logout',
    method: 'post',
    params: params
  })
}
// 删除考勤
// export const delAttendance = params => DELETE('/all/api/services/app/AttendanceService/Delete' params).then(res => res.data) 
export function delAttendance(params) {
  return request({
    url: '/all/api/services/app/AttendanceService/Delete',
    method: 'delete',
    params: params
  })
}